using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.XtraBars;
using DevExpress.XtraBars.Helpers;
using DevExpress.UserSkins;
using Danhmuc;
using libThongTin;

namespace QLCongNo
{
    public partial class frmMain2 : DevExpress.XtraEditors.XtraForm
    {
        public frmMain2()
        {
            InitializeComponent();
            xtraTabbedMdiManager1.ClosePageButtonShowMode = DevExpress.XtraTab.ClosePageButtonShowMode.InActiveTabPageHeader;
        }

        private void navBarItem1_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            //XtraForm1 f = new XtraForm1();
            //f.MdiParent = this;
            //f.Show();
        }

        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {

        }

        private void XfrmMain_Load(object sender, EventArgs e)
        {
            //DevExpress.UserSkins.OfficeSkins.Register();
            //DevExpress.UserSkins.BonusSkins.Register();
            //SkinHelper.InitSkinPopupMenu(barSubItem1);
            
        }

        private void barButtonItem8_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmNhaCC f = new frmNhaCC();
            f.MdiParent = this;
            f.Text = "Nha Cung Cap";
            f.Show();
        }

        private void barButtonItem9_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmPLoai f = new frmPLoai();
            f.MdiParent = this;
            f.Text = "Phan Loai";
            f.Show();
        }

        private void barButtonItem10_ItemClick(object sender, ItemClickEventArgs e)
        {
            frmLinhKien f = new frmLinhKien();
            f.MdiParent = this;
            f.Text = "Thiet Bi";
            f.Show();
        }
    }
}